package org.edu.modules.resource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_res_resource")
@ApiModel(value="ve_res_resource对象", description="资源表")
public class VeResResource
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("资源编码")
    private String code;
    @ApiModelProperty("资源名称")
    private String name;
    @ApiModelProperty("封面id")
    private Integer coverid;
    @ApiModelProperty("资源格式")
    private String format;
    @ApiModelProperty("资源文件ID")
    private Integer fileid;
    @ApiModelProperty("资源长度")
    private Integer length;
    @ApiModelProperty("资源文件大小")
    private Integer size;
    @ApiModelProperty("扩展名（file表冗余字段）")
    private String exts;
    @ApiModelProperty("应用分类id")
    private Integer classid;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("来源")
    private String source;
    @ApiModelProperty("资源创建时间")
    private Integer createtime;
    @ApiModelProperty("更新时间")
    private Integer updatetime;
    @ApiModelProperty("终端系统ID，上传资源终端ID")
    private Integer terminalid;
    @ApiModelProperty("课程ID")
    private Integer courseid;
    @ApiModelProperty("用户id")
    private Integer createuserid;
    @ApiModelProperty("是否个人共享（0私有，1共享），默认0，如果共享同步自建资源终端也共享")
    private Integer isshared;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeResResource setName(String name)
    {
        this.name = name;return this;
    }

    public VeResResource setCode(String code)
    {
        this.code = code;return this;
    }

    public VeResResource setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeResResource(id=" + getId() + ", code=" + getCode() + ", name=" + getName() + ", coverid=" + getCoverid() + ", format=" + getFormat() + ", fileid=" + getFileid() + ", length=" + getLength() + ", size=" + getSize() + ", exts=" + getExts() + ", classid=" + getClassid() + ", author=" + getAuthor() + ", source=" + getSource() + ", createtime=" + getCreatetime() + ", updatetime=" + getUpdatetime() + ", terminalid=" + getTerminalid() + ", courseid=" + getCourseid() + ", createuserid=" + getCreateuserid() + ", isshared=" + getIsshared() + ", placeId=" + getPlaceId() + ")";
    }

    public VeResResource setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeResResource setIsshared(Integer isshared)
    {
        this.isshared = isshared;return this;
    }

    public VeResResource setCreateuserid(Integer createuserid)
    {
        this.createuserid = createuserid;return this;
    }

    public VeResResource setCourseid(Integer courseid)
    {
        this.courseid = courseid;return this;
    }

    public VeResResource setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeResResource setUpdatetime(Integer updatetime)
    {
        this.updatetime = updatetime;return this;
    }

    public VeResResource setCreatetime(Integer createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeResResource setSource(String source)
    {
        this.source = source;return this;
    }

    public VeResResource setAuthor(String author)
    {
        this.author = author;return this;
    }

    public VeResResource setClassid(Integer classid)
    {
        this.classid = classid;return this;
    }

    public VeResResource setExts(String exts)
    {
        this.exts = exts;return this;
    }

    public VeResResource setSize(Integer size)
    {
        this.size = size;return this;
    }

    public VeResResource setLength(Integer length)
    {
        this.length = length;return this;
    }

    public VeResResource setFileid(Integer fileid)
    {
        this.fileid = fileid;return this;
    }

    public VeResResource setFormat(String format)
    {
        this.format = format;return this;
    }

    public VeResResource setCoverid(Integer coverid)
    {
        this.coverid = coverid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $coverid = getCoverid();result = result * 59 + ($coverid == null ? 43 : $coverid.hashCode());Object $fileid = getFileid();result = result * 59 + ($fileid == null ? 43 : $fileid.hashCode());Object $length = getLength();result = result * 59 + ($length == null ? 43 : $length.hashCode());Object $size = getSize();result = result * 59 + ($size == null ? 43 : $size.hashCode());Object $classid = getClassid();result = result * 59 + ($classid == null ? 43 : $classid.hashCode());Object $createtime = getCreatetime();result = result * 59 + ($createtime == null ? 43 : $createtime.hashCode());Object $updatetime = getUpdatetime();result = result * 59 + ($updatetime == null ? 43 : $updatetime.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $courseid = getCourseid();result = result * 59 + ($courseid == null ? 43 : $courseid.hashCode());Object $createuserid = getCreateuserid();result = result * 59 + ($createuserid == null ? 43 : $createuserid.hashCode());Object $isshared = getIsshared();result = result * 59 + ($isshared == null ? 43 : $isshared.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $code = getCode();result = result * 59 + ($code == null ? 43 : $code.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $format = getFormat();result = result * 59 + ($format == null ? 43 : $format.hashCode());Object $exts = getExts();result = result * 59 + ($exts == null ? 43 : $exts.hashCode());Object $author = getAuthor();result = result * 59 + ($author == null ? 43 : $author.hashCode());Object $source = getSource();result = result * 59 + ($source == null ? 43 : $source.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeResResource;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeResResource)) {
            return false;
        }
        VeResResource other = (VeResResource)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$coverid = getCoverid();Object other$coverid = other.getCoverid();
        if (this$coverid == null ? other$coverid != null : !this$coverid.equals(other$coverid)) {
            return false;
        }
        Object this$fileid = getFileid();Object other$fileid = other.getFileid();
        if (this$fileid == null ? other$fileid != null : !this$fileid.equals(other$fileid)) {
            return false;
        }
        Object this$length = getLength();Object other$length = other.getLength();
        if (this$length == null ? other$length != null : !this$length.equals(other$length)) {
            return false;
        }
        Object this$size = getSize();Object other$size = other.getSize();
        if (this$size == null ? other$size != null : !this$size.equals(other$size)) {
            return false;
        }
        Object this$classid = getClassid();Object other$classid = other.getClassid();
        if (this$classid == null ? other$classid != null : !this$classid.equals(other$classid)) {
            return false;
        }
        Object this$createtime = getCreatetime();Object other$createtime = other.getCreatetime();
        if (this$createtime == null ? other$createtime != null : !this$createtime.equals(other$createtime)) {
            return false;
        }
        Object this$updatetime = getUpdatetime();Object other$updatetime = other.getUpdatetime();
        if (this$updatetime == null ? other$updatetime != null : !this$updatetime.equals(other$updatetime)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$courseid = getCourseid();Object other$courseid = other.getCourseid();
        if (this$courseid == null ? other$courseid != null : !this$courseid.equals(other$courseid)) {
            return false;
        }
        Object this$createuserid = getCreateuserid();Object other$createuserid = other.getCreateuserid();
        if (this$createuserid == null ? other$createuserid != null : !this$createuserid.equals(other$createuserid)) {
            return false;
        }
        Object this$isshared = getIsshared();Object other$isshared = other.getIsshared();
        if (this$isshared == null ? other$isshared != null : !this$isshared.equals(other$isshared)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$code = getCode();Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$format = getFormat();Object other$format = other.getFormat();
        if (this$format == null ? other$format != null : !this$format.equals(other$format)) {
            return false;
        }
        Object this$exts = getExts();Object other$exts = other.getExts();
        if (this$exts == null ? other$exts != null : !this$exts.equals(other$exts)) {
            return false;
        }
        Object this$author = getAuthor();Object other$author = other.getAuthor();
        if (this$author == null ? other$author != null : !this$author.equals(other$author)) {
            return false;
        }
        Object this$source = getSource();Object other$source = other.getSource();return this$source == null ? other$source == null : this$source.equals(other$source);
    }

    public Integer getId()
    {
        return this.id;
    }

    public String getCode()
    {
        return this.code;
    }

    public String getName()
    {
        return this.name;
    }

    public Integer getCoverid()
    {
        return this.coverid;
    }

    public String getFormat()
    {
        return this.format;
    }

    public Integer getFileid()
    {
        return this.fileid;
    }

    public Integer getLength()
    {
        return this.length;
    }

    public Integer getSize()
    {
        return this.size;
    }

    public String getExts()
    {
        return this.exts;
    }

    public Integer getClassid()
    {
        return this.classid;
    }

    public String getAuthor()
    {
        return this.author;
    }

    public String getSource()
    {
        return this.source;
    }

    public Integer getCreatetime()
    {
        return this.createtime;
    }

    public Integer getUpdatetime()
    {
        return this.updatetime;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getCourseid()
    {
        return this.courseid;
    }

    public Integer getCreateuserid()
    {
        return this.createuserid;
    }

    public Integer getIsshared()
    {
        return this.isshared;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
